<template>
	<div class="home flex justify-center items-center flex-col">
		<div class="title">Hello DingDing!</div>

		<div class="user text-center">
			<div class="info">{{ `姓名：${userInfo.name ?? ""}` }}</div>
			<div class="info">{{ `手机：${userInfo.mobile ?? ""}` }}</div>
		</div>
	</div>
</template>

<script setup>
import { ref, onMounted, watch } from "vue";
import { storeToRefs } from "pinia";
import { useUserStore } from "@/stores";

const userStore = useUserStore();
const { userInfo } = storeToRefs(userStore);
</script>

<script>
export default {
	name: "Home",
};
</script>

<style scoped lang="less">
.home {
	height: 100%;
	width: 100%;

	.title {
	}

	.user {
		// text-align: center;
	}
}
</style>

<route>
	{
		meta: {
			layout: 'default',
		}
	}
</route>
